<?php
/**
 * Created by PhpStorm.
 * User: muhe0
 * Date: 2017/5/7
 * Time: 12:24
 */

class Ac{
    function  __construct($a){
        $this->a=$a ;
    }
    function  a(){
        $a=$this->a;
        $a();
    }
}
$b ="b " ;

$a = new Ac(function() use ($b) {
    echo "xxxxx $b \n " ;
}) ;
